package com.flink.chineseFilter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FlinkChineseFilterController {

    @Autowired
    private FlinkChineseFilterService service;

    @GetMapping("/filter-chinese")
    public String filterChinese(@RequestParam String input) throws Exception {
        return service.filterChinese(input);
    }
}
